Skip to content

Constrain classes further in MailPreview controller#1078

Merged
dereuromark merged 2 commits into
5.xfrom
fix-preview-class
Jun 4, 2026
Merged

Constrain classes further in MailPreview controller#1078
dereuromark merged 2 commits into
5.xfrom
fix-preview-class

Conversation

@markstory
Copy link
Copy Markdown
Member

This controller should not attempt to load classes with \ in the name, nor should it attempt to load classes that do not extedn MailPreview.

Thanks to Volker Dusch and the PHP Ecosystem security team for reporting this.

This controller should not attempt to load classes with `\` in the name,
nor should it attempt to load classes that do not extedn
`MailPreview`.

Thanks to Volker Dusch and the PHP Ecosystem security team for reporting this.
@markstory markstory added this to the 5.x milestone Jun 4, 2026
Comment thread src/Controller/MailPreviewController.php Outdated
Copy link
Copy Markdown
Contributor

@LordSimal LordSimal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be backported to 4.x as well and released as a bugfix

@dereuromark dereuromark merged commit c8a2a9e into 5.x Jun 4, 2026
9 checks passed
@dereuromark dereuromark deleted the fix-preview-class branch June 4, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants